﻿using Admin2024.Domain.Entity.System;
using Admin2024.Domain.ObjValue;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Admin2024.Domain.IDomainService.System.IPermissionService
{
    public interface IResourceManagementService
    {
        /// <summary>
        /// 创建资源权限
        /// </summary>
        /// <param name="appResource"></param>
        /// <returns></returns>
        Task<DomainResult<AppResource>> CreateResource(AppResource appResource);

        /// <summary>
        /// 删除资源权限
        /// </summary>
        /// <param name="resId"></param>
        /// <returns></returns>
        Task<DomainResult<AppResource>> DeleteResource(Guid resId);

        //获取所有资源权限(分页)
        Task<DomainResult<List<AppResource>>> GetResourceWithPagination(int page, int pageSize);

        Task<DomainResult<AppResource>> GetAppResourceById(Guid id);

        Task<DomainResult<AppResource>> UpdateResourceProfile(Guid Id, AppResource entity);
    }
}
